//
//  LabelAndTextField.m
//  视图控制器
//
//  Created by 18_李明明 on 14-11-15.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "LabelAndTextField.h"

@implementation LabelAndTextField

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
        self.myLabel.backgroundColor = [UIColor grayColor];
        [self addSubview:self.myLabel];
        
    self.myTextField = [[UITextField alloc] initWithFrame:CGRectMake(90, 0, frame.size.width - 90, frame.size.height)];
        self.myTextField.borderStyle = UITextBorderStyleRoundedRect;
        [self addSubview:self.myTextField];
        [_myLabel release];
        [_myTextField release];
        
    }
    return self;
}
- (void)dealloc
{
    [_myTextField release];
    [_myLabel release];
    [super dealloc];
    
}



@end
